#
# Copyright Laureano Arcanio 2008
# Released under the MIT License
# laureano.arcanio@gmail.com
#


#from lymon.core import Document, __default__

#__all__ =['WebObject', 'Component']

## An Lymon object is a set of defined Tags, and Widgets.

## The idea is to Have a way to populate a Widget with data


#class WebObject(object):
#	"""
#	A set of Components and functionality
#	"""
#	pass


#class Component(object):
#	"""
#	Conponent definition
#	"""
#	
#	document = Document()
#	document.div(slot='a')
#	document.a(slot='a.b')
#	
#	def __init__(self, document=None):
#		if document:
#			self.document = document
#		
#	def slot(self, slot=''):
#		if slot[-1] != '.':
#			slot += '.'
#		if slot:
#			for tag in self.document.context:
#				if tag['name'] != '__default__':
#					tag['slot'] = slot + tag['slot']
					
	
	


		
	
